package com.zl.csMall.mine.user.vo;

import com.fasterxml.jackson.annotation.JsonInclude;
import com.zl.csMall.mine.user.po.User;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;

/**
 * @description: 登录返回
 * @author: ChenNing
 * @date 2025-10-22 16:11
 */
@Data
@ApiModel(description = "登录返回 实体")
@JsonInclude(JsonInclude.Include.NON_NULL)
public class LoginResultVo implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "token")
    private String token;

    @ApiModelProperty(value = "登录用户")
    private User user;

    public LoginResultVo() {
    }

    public LoginResultVo(String token, User user) {
        this.token = token;
        this.user = user;
    }
}
